package org.csu.canteen.service;

import org.csu.canteen.entity.Coupon;
import org.csu.canteen.entity.CouponPackage;
import org.csu.canteen.vo.CouponPackageVO;

//全部已测试
public interface CouponService {
    //插入数据（couponpackage表）
    public void insertCoupon(CouponPackage couponPackage);

    //通过用户名查找优惠券（couponpackage表）
    public CouponPackageVO searchCouponByUsername(String username);

    //消费优惠券（删除）（couponpackage表）
    public void deleteCouponByUsernameAndID(CouponPackage couponPackage);

    //在coupon表中找到数据
    public Coupon searchCouponByID(int couponID);
}
